package com.lry.rpc.starter.context;

import com.lry.rpc.starter.config.AbstractConfig;
import org.springframework.core.Ordered;

public interface RpcConfigBeanCustomizer extends ConfigurationBeanCustomizer, Ordered {

    void customize(String beanName, AbstractConfig dubboConfigBean);

    default void customize(String beanName, Object configurationBean) {
        if (configurationBean instanceof AbstractConfig) {
            this.customize(beanName, (AbstractConfig)configurationBean);
        }
    }

}